//
//  Globals.h
//  DooiooOnline
//
//  Created by koki on 14-11-6.
//  Copyright (c) 2014年 dooioo. All rights reserved.
//

#ifndef DooiooOnline_Globals_h
#define DooiooOnline_Globals_h

//尺寸常量
#define APPFRAME [[UIScreen mainScreen] applicationFrame]
#define SCREENFRAME ([[UIScreen mainScreen] bounds])

//颜色常量
#define KGreenColor ([UIColor colorWithRed:0.3216 green:0.51 blue:0.09 alpha:1])
#define KLightGreenColor ([UIColor colorWithRed:0.3451 green:0.698 blue:0.2314 alpha:1])
#define KDarkGreenColor ([UIColor colorWithRed:0.2371 green:0.2941 blue:0.0941 alpha:1])
#define KBlueColor ([UIColor colorWithRed:0.0588 green:0.5059 blue:1 alpha:1])
#define KGrayColor ([UIColor colorWithRed:0.9373 green:0.9373 blue:0.9569 alpha:1])
#define KRedColor  [UIColor colorWithRed:0.9098 green:0.3451 blue:0.2627 alpha:1]
#define kGrayLineColor [UIColor colorWithRed:0.9255 green:0.9255 blue:0.9255 alpha:1]
#define kCoverColor [UIColor colorWithRed:0 green:0 blue:0 alpha:0.32]
#define kLightGrayColor [UIColor hexStringToColor:@"#9b9b9b"]
#define kDarkGrayColor [UIColor hexStringToColor:@"#343434"]
#define kContentViewColor [UIColor hexStringToColor:@"#f6f6f6"]
//宏常量
#define netEngine ([HDNetEngine sharedInstance])
#define rootNavigation (((HDAppDelegate*)[[UIApplication sharedApplication] delegate]).nav)
#define rootDelegate ((HDAppDelegate *)[UIApplication sharedApplication].delegate)
#define rootContext (((HDAppDelegate*)[[UIApplication sharedApplication] delegate]).managedObjectContext)

//消息名
#define HDViewControllerUpdateNotification @"HDViewControllerUpdateNotification"
#define HDImgInfoVctrDissmissNotification @"HDImgInfoVctrDissmissNotification"
#define HDCloseFilteTableViewControllerNotification @"CloseFilteTableViewControllerNotification"
#define HDShoppingCountChangeNotification @"HDShoppingCountChangeNotification"
#define HDRefreshOrderListNotification @"HDRefreshOrderListNotification"
#define HDRegisterBackNotification @"HDRegisterBackNotification"

#define HDViewSwitchModuleNotification @"HDViewSwitchModuleNotification"

#define isIos7Later [[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0

#define Receiver                    @"Receiver"

#endif





